package edu.chinasoft.mapper;

import java.util.List;
import java.util.Map;

import edu.chinasoft.domain.Function;
import edu.chinasoft.domain.PageUnitForDept;
import edu.chinasoft.domain.PageUnitForRole;
import edu.chinasoft.domain.Role;

public interface RoleMapper {
    //分页查询
	PageUnitForRole getRecordNum();
	List<Role> selectUnitRole(Map<String,Object> map);
    List<Function> selectFunctionByRoleId(Role role);
    boolean insertRole(Role role);
  //添加角色时添加角色权限表
    boolean insertRoleFunction(Function function);
    boolean updateRoleByRoleId(Role role);
    boolean updateRoleByRoleId(Function function);
	Role selectRoleByRoleId(Role role);
	boolean deleteRoleFunction(Role role);
	boolean deleteRoleByRoleId(Role role);
}
